package web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import web.pojo.ClassRoom;
import web.service.ClassRoomService;

@Controller
@RequestMapping("classroom")
public class ClassRoomController {

    @Autowired
    ClassRoomService service;

    @ResponseBody
    @RequestMapping("classroomList")
    public List<ClassRoom> classroomList() {
        return service.classroomList();
    }
}
